package com.example.boot.controller;
import com.example.boot.bean.bean1.info.FeedInfo;
import com.example.boot.service.list.ListAllService;
import com.example.boot.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@RestController
public class MyController1 {

    @Autowired
    ListAllService listAllService;
    @Autowired
    private HttpServletRequest request;

    @GetMapping("/listAllFeed")
    public Result listAllFeed(){
        List<FeedInfo> feedInfos = listAllService.listAllFeed1();
        return Result.success().add("feeds", feedInfos);
    }
}
